<?php
require_once 'Environment.php';
if (Environment::isDevelopment())
    defined('YII_DEBUG') or define('YII_DEBUG', true);

require_once(dirname(__FILE__) . '/../framework/yii.php'); // include Yii bootstrap file

$configFile = 'protected/config/console.php'; // path to console config file
Yii::createConsoleApplication($configFile)->run(); // creating and running console application